#ifndef TB_H
#define TB_H

typedef struct TranslationBlock {
	uint32_t source_pc;
	uint32_t target_pc;
	uint32_t count;
	uint32_t *code_buf;
} TranslationBlock;

void tb_init(void);
void tb_exit(void);
void tb_flush(void);
TranslationBlock *tb_find(uint32_t s_pc);
TranslationBlock *tb_alloc(uint32_t s_pc);
void tb_set_offset(uint32_t offset);
#endif

